import report from '@/until/axios'
//商品分类
export const catelist=(obj)=>report.get('categories',{
    params:obj
});
//添加分类
export const addcate=(obj)=>report.post('categories',obj)
//回填
export const huicate=(id)=>report.get(`categories/${id}`);
//修改
export const editcate=(id,cat)=>report.put(`categories/${id}`,cat);
//删除
export const delcate=(id)=>report.delete(`categories/${id}`)